// import Toast from 'muse-ui-toast';
// Vue.use(Toast);

// import '/ApiCloud/js/muse-ui-loading.all.css'; // load css
// import MuseUILoading from './muse-ui-loading';
// Vue.use(MuseUILoading);

// const loading = MuseUILoading({
//     // ...options
// });

var windowName = "newsInfo";
apiready = function(){
    onWindowShow(function () {
        console.log(windowName + " show")
    })
    onWindowHide(function () {
        console.log(windowName + " hide")
    })
    console.log("newsInfo page is OK");
    var Page = createVM("#Page",{
        //页面数据
        item:[],
    },{
        //页面方法
        "init":function () {
            var _this = this;
            var data = getData4Page()
            // loading()

            apiLoad("/app/news/info",{id:data.id},function (res) {
                _this.item = res.data
                // console.log(JSON.stringify(res));
                // hideLoading()
            })
        }
    })
    Page.init()

}
